Alibabacloud.com offers a wide variety of articles about oracle add datafile to tablespace, easily find your oracle add datafile to tablespace information here online.
tablespace_name) B
WHERE a. tablespace_name = B. tablespace_name
Order by (a. bytes-B. bytes)/a. bytes) DESC;
In the preceding SQL statement, there are two subqueries. The first query gets the total number of bytes in the tablespace, and the second query gets the number of bytes in the remainder of the tablespace, the final result is the number of bytes and percentage used.
You can modify the size of a
When learning Oracle database infrastructure earlier, Oracle's storage structure was understood, logically, Oracle data was stored in tablespaces and physically stored in datafiles. A tablespace can only belong to one database (one database can include multiple tablespace), including 1 or more data files.
Case 4:recover DataFile
--New table space, no backup, datafile deleted
Recovery steps: From the library, through the v$recover_file to see the files that need to be recovered, because there is no backup, only the data file offline, data file reconstruction, and then recover datafile, online can
(1) Simulation environment
sql> Create
Tags: error:poi information control recover Glob started own variableCold Standby Manual Full recovery1. Manual full recovery of three levels:Recover database: All or most of the datafile are lost and are generally completed in the Mount state.Recover tablespace: Non-critical table space corruption, some data files under the table space can not be accessed, usually in open under the completion.Recover
After reading this article, I cannot delete it because of the bug of Oraclesoftware, that is, the bug of the program. Relativefileno and others of the datafile to be dropped
After reading this article, I cannot delete it because of the bug of Oracle software, that is, the bug of the program. Relative file no of datafile to be dropped
Reference:
Cannot Drop E
When an empty datafile is deleted from tablespace, The ora-03262, tablespacedatafile
Reference:
Cannot Drop Empty Datafile From Tablespace ORA-03262 (Document ID 1353029.1)
Applicable:
Oracle Server-Enterprise Edition-Version: 11.2.0.2 and later [Release: 11.2 and later]Info
Aug 22 12:49:55 2005
Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.
SQL> conn/as sysdba
Connected.
SQL> alter tablespace ts_index add datafile
2 '/dev/rlvdata0318' size 4090; // The size is 4090 instead of 4096. If 4096 is all used, it is prone to errors.
SQL>
/* Divided into four steps * // * Step 4: create a temporary tablespace */create temporary tablespace user_temp tempfile 'C: \ hy \ oracle \ product \ 10.2.0 \ tablespace \ user_temp.dbf 'size 50 m autoextend on next 50 m maxsize 20480 M extent management local;/* Step 4: create a data table space */create
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui>
1,
Run the following SQL statement to find the path of the data file that stores the tablespace:
-- Sep 28,200 8Eleven. Xu
SelectDDF. file_name
From dba_data_files DDF
Where DDF. tablespace_name = 'apps _ ts_tx_data'
2. log on to PL/SQL developer with system/Ma
Background:When a new table is created from the CREATE table in Oracle, the new table has a larger amount of data, such as 1 billion, when Sql*plus is likely to prompt "ORA-01653: ..." error message. This error message implies that the table space is not large enough and requires additional data files for the tablespace.
Analysis:1. Query table space remaining byte sizeSELECT Tablespace_name, SUM (BYTES)/10
Data dictionary when dropping) 4. Test the preceding three points: www.2cto.com ①. create tablespace shanxi datafile '/u01/app/oracle/product/10.2.0/oradata/oamis/shanxi. dbf 'size 20 m extent management local uniform size 128 k; ② create a user. The default tablespace is shanxi create user fc identified by fc default
tablespace.
Select tablespace_name, file_id, file_name,
Round (bytes/(1024*1024), 0) total_space
From dba_data_files
Order by tablespace_name;
1. Add data files
Alter tablespace test
Add datafile '/oracle/oradata/db/test02.dbf' S
/ora10g/app/oracle/oradata/ora10g/test01.dbf ONLINE READ WRITE-- It is also OK to add a new data file:SQL> alter tablespace test add datafile '/u01/ora10g/app/oracle/oradata/ora10g/test02_ B .dbf' size 1 m;
with the table size. Large tables use small tables in large regions and small tables use cells.
6. Create tablespace sales: Create a tablespace named sales. The sales size is 800 m, the automatic growth step is 50 m, and the maximum space is 1000 m,
Temporary indicates creating a temporary tablespace for dictionary management.Create
TABLESPACE_NAME; Note: if it is a temporary tablespace, query DBA_TEMP_FREE_SPACESELECT TABLESPACE_NAME, FREE_SPACE/1024/1024 as free space (M) FROM DBA_TEMP_FREE_SPACEWHERE TABLESPACE_NAME = ' tablespace_name'; 2. if you do not know the table space data file directory planning, you can first query all the table space data files SELECT TABLESPACE_NAME, FILE_ID, FILE_NAME, BYTES/1024/1024 as bytes (M) FROM DBA_DATA_FILESWHERE TABLESPACE_NAME = ' table
In oracle database, a datafile can be dropped, databasedatafile
Refer to the mos article:Unable to Drop a Datafile From the Tablespace Using Alter Tablespace Command (Document ID 1050261.1)
This datafile cannot be dropped because
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.